<div class="roles view">
    <h2><?php echo __('Role'); ?></h2>
    <dl>
        <dt><?php echo __('Id'); ?></dt>
        <dd>
            <?php echo h($role['Role']['id']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Title'); ?></dt>
        <dd>
            <?php echo h($role['Role']['title']); ?>
            &nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Edit Role'), array('action' => 'edit', $role['Role']['id'])); ?> </li>
        <li><?php echo $this->Form->postLink(__('Delete Role'), array('action' => 'delete', $role['Role']['id']), null, __('Are you sure you want to delete # %s?', $role['Role']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List Roles'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Role'), array('action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
    </ul>
</div>
<div class="related">
    <h3><?php echo __('Related Users'); ?></h3>
    <?php if (!empty($role['User'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Username'); ?></th>
                <th><?php echo __('Password'); ?></th>
                <th><?php echo __('Email'); ?></th>
                <th><?php echo __('First Name'); ?></th>
                <th><?php echo __('Middle Name'); ?></th>
                <th><?php echo __('Last Name'); ?></th>
                <th><?php echo __('Aka First Name'); ?></th>
                <th><?php echo __('Aka Last Name'); ?></th>
                <th><?php echo __('Dob'); ?></th>
                <th><?php echo __('Phone 1'); ?></th>
                <th><?php echo __('Phone 2'); ?></th>
                <th><?php echo __('Marital Status Id'); ?></th>
                <th><?php echo __('Gender Id'); ?></th>
                <th><?php echo __('Ethincity Id'); ?></th>
                <th><?php echo __('Alternate Contact'); ?></th>
                <th><?php echo __('Alternate Phone'); ?></th>
                <th><?php echo __('Carrier Id'); ?></th>
                <th><?php echo __('Ca Resident'); ?></th>
                <th><?php echo __('Role Id'); ?></th>
                <th><?php echo __('Active'); ?></th>
                <th><?php echo __('Is Union Member'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($role['User'] as $user): ?>
                <tr>
                    <td><?php echo $user['id']; ?></td>
                    <td><?php echo $user['username']; ?></td>
                    <td><?php echo $user['password']; ?></td>
                    <td><?php echo $user['email']; ?></td>
                    <td><?php echo $user['first_name']; ?></td>
                    <td><?php echo $user['middle_name']; ?></td>
                    <td><?php echo $user['last_name']; ?></td>
                    <td><?php echo $user['aka_first_name']; ?></td>
                    <td><?php echo $user['aka_last_name']; ?></td>
                    <td><?php echo $user['dob']; ?></td>
                    <td><?php echo $user['phone_1']; ?></td>
                    <td><?php echo $user['phone_2']; ?></td>
                    <td><?php echo $user['marital_status_id']; ?></td>
                    <td><?php echo $user['gender_id']; ?></td>
                    <td><?php echo $user['ethincity_id']; ?></td>
                    <td><?php echo $user['alternate_contact']; ?></td>
                    <td><?php echo $user['alternate_phone']; ?></td>
                    <td><?php echo $user['carrier_id']; ?></td>
                    <td><?php echo $user['ca_resident']; ?></td>
                    <td><?php echo $user['role_id']; ?></td>
                    <td><?php echo $user['active']; ?></td>
                    <td><?php echo $user['is_union_member']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'users', 'action' => 'delete', $user['id']), null, __('Are you sure you want to delete # %s?', $user['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
